package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import com.geccocrawler.gecco.spider.SpiderBean;

import java.util.List;

@Gecco(matchUrl = "http://www.cshr.com.cn/csrcwhr/Person/searchResult.aspx", pipelines = { "saveCshrPipeline" })
public class CshrIndexPage implements HtmlBean, SpiderBean {

    @Request
    private HttpRequest request;

    @HtmlField(cssPath = "div.toolRight #AspNetPager2 >div:nth-child(1)")
    private String pageSize;

    @HtmlField(cssPath = "#zwbt table tr:not(tr:nth-child(1))")
    private List<CshrCompanyRecruit> cshrCompanyRecruitList;

    public List<CshrCompanyRecruit> getCshrCompanyRecruitList() {
        return cshrCompanyRecruitList;
    }

    public void setCshrCompanyRecruitList(List<CshrCompanyRecruit> cshrCompanyRecruitList) {
        this.cshrCompanyRecruitList = cshrCompanyRecruitList;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }


}
